<!DOCTYPE html>
<!--suppress ALL-->
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>管理员登录页面</title>
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" />
	<style>
		body{
			background-image: url("http://localhost:8082/eBusiness/images/201910280135559859.jpg");
		}
		.container{
			border: 2px solid rgba(255,255,255,0.4);
			width: 50%;
			margin: 100px  auto;

		}
		#l1,#l2{
			color: white;
		}

	</style>

</head>
<body>
	<div class="container">
	  	<div class=""  style="width:70%; height: 60px;padding-top: 1px;">
	       <h2 align="center"  style="color: white;font-size: 25px" >管理员登录</h2>
	   </div>
		<br>
		<br>
		<form th:action="@{/admin/login}" name="myform" method="post" th:object="${aUser}"  class="form-horizontal" role="form" >
			<div class="form-group has-success">
				<label class="col-sm-2 col-md-2 control-label" id="l1">用户名</label>
				<div class="col-sm-4 col-md-4">
					<input type="text" class="form-control"
					 placeholder="请输入管理员名"
					th:field="*{aname}"/>
					<span th:errors="*{aname}"></span>
				</div>
			</div>
		
			<div class="form-group has-success">
				  <label class="col-sm-2 col-md-2 control-label" id="l2">密码</label>
				  <div class="col-sm-4 col-md-4">
		  				<input type="password" class="form-control"
					 placeholder="请输入您的密码" th:field="*{apwd}"/>
					 <span th:errors="*{apwd}"></span>
				  </div>
			 </div>
			
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit"class="btn btn-success" >登录</button>
					<button type="reset" class="btn btn-primary" >重置</button>
				</div>
			</div>
			
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<font size="6" color="red">
						<span th:text="${errorMessage }"></span>
					</font>
				</div>
			</div>
		</form>
	</div>
</body>
</html>